import Layout from '@/layout'

const router = {
  path: '/vip',
  component: Layout,
  name: 'vip',
  alwaysShow: true,
  meta: {
    title: '会员管理',
    icon: 'peoples'
  },
  children: [
    {
      path: '/vip/vipCard',
      component: () => import('@/views/vip/vipCard/viplist'),
      name: 'vipCardlist',
      meta: {
        title: '会员资料'
      },
    }, {
      path: '/vip/vipCard/detail',
      component: () => import('@/views/vip/vipCard/detail'),
      name: 'vipdetail',
      meta: {
        title: '添加会员'
      },
      hidden: true
    }, {
      path: '/vip/vipGrade/gradelist',
      component: () => import('@/views/vip/vipGrade/gradelist'),
      name: 'vipgradelist',
      meta: {
        title: '会员等级'
      },
    },
  ]
}

export default router
